<?php
/**
 * Check for some standard PHP pre-requisites to run the system flawlessly
 */
$modules = array(
	'MCrypt' => array(
		'function' => 'mcrypt_module_open',
		'extension' => '',
		'error' => '',
	),
	'cURL' =>  array(
		'function' => 'curl_init',
		'extension' => '',
		'error' => '',
	),
	'MySQL' =>  array(
		'function' => 'mysql_connect',
		'extension' => '',
		'error' => '',
	),
	'MySQLi' =>  array(
		'function' => 'mysqli_connect',
		'extension' => '',
		'error' => '',
	),
	'GD' =>  array(
		'function' => 'gd_info',
		'extension' => '',
		'error' => '',
	),
	'MB String' =>  array(
		'function' => 'mb_internal_encoding',
		'extension' => '',
		'error' => '',
	),
	'SimpleXML' =>  array(
		'function' => 'simplexml_load_file',
		'extension' => '',
		'error' => '',
	),
	'SPL' =>  array(
		'function' => 'spl_autoload',
		'extension' => '',
		'error' => '',
	),
	'OpenSSL' =>  array(
		'function' => 'openssl_encrypt',
		'extension' => 'php_openssl.dll',
		'error' => '',
	),
);
foreach($modules as $module => $function)
{
	if(!function_exists($function['function']))
	{
		echo("<br />Enable {$module} first ({$function['extension']}). {$function['error']}");
	}
}
?>

<a href="mysqli.php">MySQLi</a>